package freedom.sample.ws.service.impl;

import freedom.sample.ws.model.Author;
import freedom.sample.ws.model.Book;
import freedom.sample.ws.service.BookService;

public class BookServiceImpl implements BookService {

	@Override
	public Book getBookById(int id) {
		Book book = new Book();
		book.setName("book_" + id);
		Author author = new Author();
		author.setName("author_" + id);
		book.setAuthor(author);
		return book;
	}

	@Override
	public String sayHello(String str) {
		return "Hello, " + str;
	}

}
